<?php
use Phalcon\Paginator\Adapter\Model as PaginatorModel;
class AppconfigController extends ControllerBase
{

    public function initialize()
    {
        parent::initialize();
    }

    /**
     * 提现配置
     */
    public function aclistAction(){
        $appconfig = new Appconfig();
        $list = $appconfig->page_list();
        $this->ok($list);
    }


    //修改提现配置
    public function acupdateAction(){
        foreach($this->params['key'] as $key=>$value){
            $appconfig = new Appconfig();
            $appconfig->save_params($value);
        }
        $this->ok([]);
    }


    //红包摇一摇配置
    public function shakelistAction(){

    }



}
